<?php
include "./conexao.php";
$c = $_POST['canal'];
$c = addslashes($c);
$select = "SELECT ytid,yttitulo,ytminiatura FROM canal c WHERE c.yttitulo = '$c' or c.ytusername = '$c'";
$res = mysql_query($select);
$st = "";
while($row = mysql_fetch_array($res)){
	$t = stripslashes($row['yttitulo']);
	$tit = "<h2>".$t."</h2>";
	$mi = "<img src=\"http://".$row['ytminiatura']."\" class=\"img-thumbnail\" style=\"float:left;margin:4px 4px;\">";
	$us = "<h3 style=\"display: none;\">".$row['ytid']."</h3>";
	$st = $st."<div class=\"col-md-6\">".$mi."<div class=\"col-sm-7\">".$tit.$us."<button type=\"button\" class=\"btn-add btn btn-lg btn-success\" style=\"padding-left: 30px;padding-right: 30px;\">Inscrever</button></div></div>";
}
if($st == "") $st = "<h4>Não existe este canal adicionado em nosso sitema <a href=\"http://facetube.esy.es/addcanal.php\">clique aqui para adicionar um canal</a></h4>";
echo $st."<br>";
?>